home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
mail
/
Mutt089src.lha
/
Mutt-0.89i-AMIGA
/
src
/
functions.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-28
|
12KB
|
312 lines
/*
* Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* This file contains the structures needed to parse ``bind'' commands, as
* well as the default bindings for each menu.
*
* Notes:
*
* - If you want to bind \n or \r, use M_ENTER_S so that it will work
* correctly under both ncurses and S-Lang
*
* - If you need to bind a control char, use the octal value because the \cX
* construct does not work at this level.
*
*/
struct binding_t OpGeneric[] = {
{ "top-page", OP_TOP_PAGE, "H" },
{ "next-entry", OP_NEXT_ENTRY, "j" },
{ "previous-entry", OP_PREV_ENTRY, "k" },
{ "bottom-page", OP_BOTTOM_PAGE, "L" },
{ "refresh", OP_REDRAW, "\014" },
{ "middle-page", OP_MIDDLE_PAGE, "M" },
{ "exit", OP_EXIT, "q" },
{ "tag-entry", OP_TAG, "t" },
{ "next-page", OP_NEXT_PAGE, "z" },
{ "previous-page", OP_PREV_PAGE, "Z" },
{ "last-entry", OP_LAST_ENTRY, "*" },
{ "first-entry", OP_FIRST_ENTRY, "=" },
{ "enter-command", OP_ENTER_COMMAND, ":" },
{ "next-line", OP_NEXT_LINE, ">" },
{ "previous-line", OP_PREV_LINE, "<" },
{ "half-up", OP_HALF_UP, "[" },
{ "half-down", OP_HALF_DOWN, "]" },
{ "help", OP_HELP, "?" },
{ "tag-prefix", OP_TAG_PREFIX, ";" },
{ "select-entry", OP_GENERIC_SELECT_ENTRY,M_ENTER_S },
{ "jump", OP_JUMP, NULL },
{ "current-top", OP_CURRENT_TOP, NULL },
{ "current-middle", OP_CURRENT_MIDDLE, NULL },
{ "current-bottom", OP_CURRENT_BOTTOM, NULL },
{ NULL, 0, NULL }
};
struct binding_t OpMain[] = {
{ "create-alias", OP_CREATE_ALIAS, "a" },
{ "bounce-message", OP_BOUNCE_MESSAGE, "b" },
{ "change-folder", OP_MAIN_CHANGE_FOLDER, "c" },
{ "change-folder-readonly", OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
{ "copy-message", OP_COPY_MESSAGE, "C" },
{ "decode-copy", OP_DECODE_COPY, "\033C" },
{ "decode-save", OP_DECODE_SAVE, "\033s" },
{ "delete-message", OP_DELETE, "d" },
{ "delete-pattern", OP_MAIN_DELETE_PATTERN, "D" },
{ "delete-thread", OP_DELETE_THREAD, "\004" },
{ "delete-subthread", OP_DELETE_SUBTHREAD, "\033d" },
{ "forward-message", OP_FORWARD_MESSAGE, "f" },
{ "flag-message", OP_FLAG_MESSAGE, "F" },
{ "group-reply", OP_GROUP_REPLY, "g" },
#ifdef USE_POP
{ "fetch-mail", OP_MAIN_FETCH_MAIL, "G" },
#endif
{ "display-headers", OP_DISPLAY_HEADERS, "h" },
{ "next-undeleted", OP_MAIN_NEXT_UNDELETED, "j" },
{ "previous-undeleted", OP_MAIN_PREV_UNDELETED, "k" },
{ "limit", OP_MAIN_LIMIT, "l" },
{ "list-reply", OP_LIST_REPLY, "L" },
{ "mail", OP_MAIL, "m" },
{ "toggle-new", OP_TOGGLE_NEW, "N" },
{ "toggle-write", OP_TOGGLE_WRITE, "%" },
{ "search-next", OP_SEARCH_NEXT, "n" },
{ "next-thread", OP_MAIN_NEXT_THREAD, "\016" },
{ "next-subthread", OP_MAIN_NEXT_SUBTHREAD, "\033n" },
{ "quit", OP_QUIT, "q" },
{ "reply", OP_REPLY, "r" },
{ "sort-mailbox", OP_SORT, "o" },
{ "sort-reverse", OP_SORT_REVERSE, "O" },
{ "print-message", OP_PRINT, "p" },
{ "previous-thread", OP_MAIN_PREV_THREAD, "\020" },
{ "previous-subthread", OP_MAIN_PREV_SUBTHREAD, "\033p" },
{ "recall-message", OP_RECALL_MESSAGE, "R" },
{ "read-thread", OP_MAIN_READ_THREAD, "\022" },
{ "read-subthread", OP_MAIN_READ_SUBTHREAD, "\033r" },
{ "save-message", OP_SAVE, "s" },
{ "tag-pattern", OP_MAIN_TAG_PATTERN, "T" },
{ "tag-thread", OP_TAG_THREAD, "\033t" },
{ "untag-pattern", OP_MAIN_UNTAG_PATTERN, "\024" },
{ "undelete-message", OP_UNDELETE, "u" },
{ "undelete-pattern", OP_MAIN_UNDELETE_PATTERN, "U"},
{ "undelete-subthread", OP_UNDELETE_SUBTHREAD, "\033u" },
{ "undelete-thread", OP_UNDELETE_THREAD, "\025" },
{ "view-attachments", OP_VIEW_ATTACHMENTS, "v" },
{ "show-version", OP_VERSION, "V" },
{ "set-flag", OP_MAIN_SET_FLAG, "w" },
{ "clear-flag", OP_MAIN_CLEAR_FLAG, "W" },
{ "exit", OP_MAIN_EXIT, "x" },
{ "display-message", OP_DISPLAY_MESSAGE, M_ENTER_S },
{ "sync-mailbox", OP_MAIN_SYNC_FOLDER, "$" },
{ "search", OP_SEARCH, "/" },
{ "search-reverse", OP_SEARCH_REVERSE, "\033/" },
{ "shell-escape", OP_SHELL_ESCAPE, "!" },
{ "display-address", OP_DISPLAY_ADDRESS, "@" },
{ "pipe-message", OP_PIPE, "|" },
{ "next-new", OP_MAIN_NEXT_NEW, "\t" },
{ "previous-new", OP_MAIN_PREV_NEW, "\033\t" },
{ "next-unread", OP_MAIN_NEXT_UNREAD, NULL },
{ "previous-unread", OP_MAIN_PREV_UNREAD, NULL },
#ifdef _PGPPATH
{ "extract-keys", OP_EXTRACT_KEYS, "\013" },
{ "forget-passphrase", OP_FORGET_PASSPHRASE, "\006" },
{ "mail-key", OP_MAIL_KEY, "\033k" },
#endif
{ NULL, 0, NULL }
};
struct binding_t OpPager[] = {
{ "create-alias", OP_CREATE_ALIAS, "a" },
{ "bounce-message", OP_BOUNCE_MESSAGE, "b" },
{ "change-folder", OP_MAIN_CHANGE_FOLDER, "c" },
{ "change-folder-readonly", OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
{ "copy-message", OP_COPY_MESSAGE, "C" },
{ "decode-copy", OP_DECODE_COPY, "\033C" },
{ "delete-message", OP_DELETE, "d" },
{ "delete-thread", OP_DELETE_THREAD, "\004" },
{ "delete-subthread", OP_DELETE_SUBTHREAD, "\033d" },
{ "forward-message", OP_FORWARD_MESSAGE, "f" },
{ "flag-message", OP_FLAG_MESSAGE, "F" },
{ "group-reply", OP_GROUP_REPLY, "g" },
{ "display-headers", OP_DISPLAY_HEADERS, "h" },
{ "exit", OP_PAGER_EXIT, "i" },
{ "next-undeleted", OP_MAIN_NEXT_UNDELETED, "j" },
{ "next-message", OP_NEXT_ENTRY, "J" },
{ "previous-undeleted",OP_MAIN_PREV_UNDELETED, "k" },
{ "previous-message", OP_PREV_ENTRY, "K" },
{ "list-reply", OP_LIST_REPLY, "L" },
{ "redraw-screen", OP_REDRAW, "\014" },
{ "mail", OP_MAIL, "m" },
{ "search-next", OP_SEARCH_NEXT, "n" },
{ "mark-as-new", OP_TOGGLE_NEW, "N" },
{ "next-thread", OP_MAIN_NEXT_THREAD, "\016" },
{ "next-subthread", OP_MAIN_NEXT_SUBTHREAD, "\033n" },
{ "print-message", OP_PRINT, "p" },
{ "previous-thread", OP_MAIN_PREV_THREAD, "\020" },
{ "previous-subthread",OP_MAIN_PREV_SUBTHREAD, "\033p" },
{ "quit", OP_QUIT, "Q" },
{ "reply", OP_REPLY, "r" },
{ "recall-message", OP_RECALL_MESSAGE, "R" },
{ "read-thread", OP_MAIN_READ_THREAD, "\022" },
{ "read-subthread", OP_MAIN_READ_SUBTHREAD, "\033r" },
{ "save-message", OP_SAVE, "s" },
{ "decode-save", OP_DECODE_SAVE, "\033s" },
{ "tag-message", OP_TAG, "t" },
{ "toggle-quoted", OP_PAGER_HIDE_QUOTED, "T" },
{ "undelete-message", OP_UNDELETE, "u" },
{ "undelete-subthread",OP_UNDELETE_SUBTHREAD, "\033u" },
{ "undelete-thread", OP_UNDELETE_THREAD, "\025" },
{ "view-attachments", OP_VIEW_ATTACHMENTS, "v" },
{ "show-version", OP_VERSION, "V" },
{ "search-toggle", OP_SEARCH_TOGGLE, "\\" },
{ "display-address", OP_DISPLAY_ADDRESS, "@" },
{ "next-new", OP_MAIN_NEXT_NEW, "\t" },
{ "pipe-message", OP_PIPE, "|" },
{ "help", OP_HELP, "?" },
{ "next-page", OP_NEXT_PAGE, " " },
{ "previous-page", OP_PREV_PAGE, "-" },
{ "top", OP_PAGER_TOP, "^" },
{ "bottom", OP_PAGER_BOTTOM, "$" },
{ "shell-escape", OP_SHELL_ESCAPE, "!" },
{ "search", OP_SEARCH, "/" },
{ "search-reverse", OP_SEARCH_REVERSE, "\033/" },
{ "enter-command", OP_ENTER_COMMAND, ":" },
{ "next-line", OP_NEXT_LINE, M_ENTER_S },
{ "jump", OP_JUMP, NULL },
{ "next-unread", OP_MAIN_NEXT_UNREAD, NULL },
{ "previous-new", OP_MAIN_